<%@ page pageEncoding="utf-8" session="false" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>词条管理</title>
<meta name="robots" content="all"/>
<meta name="googlebot" content="all"/>
<meta name="baiduspider" content="all"/>
<meta name="copyright" content="All Rights Reserved 版权所有"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/css/note.css"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/css/pagebar.css"/>
<script type="text/javascript" src="${contextPath}/resource/user/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${contextPath}/resource/user/user.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/note.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/archive-list.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/scrollpage.js"></script>
</head>
<body style="overflow: auto;">
<div class="menu-bar">
    <a class="button" href="javascript:void(0)" onclick="window.history.back();"><span class="back"></span>返回</a>
    <a class="button" href="javascript:void(0)" onclick="window.location.reload();"><span class="refresh"></span>刷新</a>
    <span class="seperator"></span>
    <a class="button bk-archive-create" href="javascript:void(0)"><span class="add"></span>新建文档</a>
    <a class="button" href="/note/category/list.html?categoryId=${category.categoryId}">分类管理</a>
    <span class="seperator"></span>
    <a class="button moveup" href="javascript:void(0)">上移</a>
    <a class="button movedown" href="javascript:void(0)">下移</a>
</div>
<table id="archive-list" class="list">
    <tr class="head">
        <td class="w400">标题</td>
        <td class="w100">显示类型</td>
        <td class="w150">创建时间</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${archiveList}" var="archive" varStatus="status">
    <tr archiveId="${archive.archiveId}" orderNo="${archive.orderNo}">
        <td><input name="title" type="text" class="text2" title="点击修改" value="${archive.title}" spellcheck="false"/></td>
        <td>
            <select name="mimeType" class="w80" selected-value="${archive.mimeType}">
                <option value="text/html">html</option>
                <option value="text/mark">mark</option>
                <option value="text/plain">text</option>
            </select>
        </td>
        <td>${DateUtil.format(archive.createTime, 'yyyy-MM-dd HH:mm:ss')}</td>
        <td>
            <a class="btn" href="/note/archive/display.html?archiveId=${archive.archiveId}">查看</a>
            <a class="btn bk-btn-edit" href="/note/archive/edit.html?archiveId=${archive.archiveId}">编辑</a>
            <a class="btn bk-btn-delete" href="javascript:void(0)" archiveId="${archive.archiveId}">删除</a>
        </td>
    </tr>
    </c:forEach>
</table>
<div class="pagebar">
    <div name="scrollpage" class="scrollpage" theme="2" pageNum="${pageNum}" pageSize="${pageSize}" count="${archiveCount}" pattern="" href="${contextPath}/note/archive/list.html?categoryId=${category.categoryId}&pageNum=%s"></div>
</div>
<div class="c20"></div>
<div id="pageContext" class="hide" contextPath="${contextPath}" categoryId="${category.categoryId}"></div>
</body>
</html>
